import request from '@/utils/request'

// 查询投资回报列表
export function listDealBfDistribution(query) {
  return request({
    url: '/distribution/dealBfDistribution/list',
    method: 'get',
    params: query
  })
}

// 查询投资回报详细
export function getAccumulatedAmount(id) {
  return request({
    url: '/distribution/dealBfDistribution/get/accumulated/amount/' + id,
    method: 'get'
  })
}

// 查询投资回报详细
export function getDealBfDistribution(id) {
  return request({
    url: '/distribution/dealBfDistribution/' + id,
    method: 'get'
  })
}

// 保存投资回报
export function saveDealBfDistribution(data) {
  return request({
    url: '/distribution/dealBfDistribution/save',
    method: 'post',
    data: data
  })
}

// 删除投资回报
export function delDealBfDistribution(id) {
  return request({
    url: '/distribution/dealBfDistribution/' + id,
    method: 'delete'
  })
}

// 导出投资回报
export function exportDealBfDistribution(query) {
  return request({
    url: '/distribution/dealBfDistribution/export',
    method: 'get',
    params: query
  })
}
